package com.yao.sdk.core;

import android.app.Application;
import android.content.Context;

import com.yao.sdk.cache.Cache;
import com.yao.sdk.cache.filestore.FileStoreProxy;
import com.yao.sdk.net.NetConfig;
import com.yao.sdk.net.NetWork;

/**
 * Created by Administrator on 2015/12/1.
 */
public final class YaoSDK {

    private YaoSDK() {};

    public static void init(Application application) {

        SDKConfig.config().application = application;
        // init NetWork
        NetWork.init(application);
        NetWork.config().setRequestMethod(NetConfig.RequestMethod.POST);

        // init FileStoreProxy


        // init cache
        Cache.init(application);
    }

    public static Application getApplication() {
        return SDKConfig.config().application;
    }

}
